﻿<!DOCTYPE html>
<html>
    <head>
        <title>Issue 6253: Auto-correction of breakpoints location</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <link href="../../../_common/testcase.css" type="text/css" rel="stylesheet"/>
        <script type="text/javascript">
            function aFunction() {
                // Set a breakpoint here

                return (true == true);
            };
        </script>
    </head>
    <body onload="aFunction()">
        <header>
            <h1>
                <a href="https://code.google.com/p/fbug/issues/detail?id=6253">Issue 6253</a>: Auto-correction of breakpoints location
            </h1>
        </header>
        <div>
            <section id="description">
                <p class="note">
                    Note: This test also covers
                    <a href="https://code.google.com/p/fbug/issues/detail?id=7323" title="Breakpoint auto-correction doesn't work correctly">issue 7323</a>.
                </p>

                <h3>Steps to reproduce</h3>
                <ol>
                    <li>Open Firebug</li>
                    <li>Switch to the <em>Script</em> panel and enable it.</li>
                    <li>
                        Click on the breakpoint column at line 9
                        (<code>// Set a breakpoint here</code>).
                        <br />
                        <span class="ok">=> The breakpoint must be Created at line 11, which is the nearest executable line.</span>
                    </li>
                    <li>Switch to the Breakpoint side panel.
                        <br />
                        <span class="ok">=> There must be a row for the breakpoint.</span>
                    </li>
                    <li>
                        Reload the page.
                    </li>
                </ol>
                <h3>Expected result</h3>
                <ul>
                    <li>The breakpoint must get hit at line 11.</li>
                </ul>
            </section>
            <footer>@farshidbeheshti, farshid.beheshti@gmail.com</footer>
        </div>
    </body>
</html>
